package com.five.mapper;

import com.five.pojo.ReadHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReadHistoryMapper {
        /**
         * 添加阅读历史
         */
        void addReadHistory(ReadHistory readHistory);
        /**
         * 删除阅读历史
         */
        void deleteReadHistory(@Param("readId")Long readId ,@Param("novelId") List<Long> id);

        /**
         * 查询一周之内阅读历史
         */
        List<ReadHistory> queryReadHistory(Long userId);

}